xm reboot: Fix wait option of xm reboot command
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 7 Feb 2008 09:27:46 +0000 (09:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 7 Feb 2008 09:27:46 +0000 (09:27 +0000)
commitc5b5f2e9ffe06cb9d967a0e7842df89e00f17818
treef53a11b361330bf6376c043eb936deea4c9cab93
parent47ea4d5c24b977228a1465d1c6af8206e0e360d4
xm reboot: Fix wait option of xm reboot command

When I rebooted a domain by xm reboot command with wait option,
I saw the following message.  But, rebooting the domain succeeded.
 Domain vm1 destroyed for failed in rebooting

The cause why the message was shown is the domain is destroyed
temporarily by processing of xm reboot command.  The domain
information is not gotten from Xend by server.xend.domains()
function till recreating the domain is completed.
This patch fixes processing of xm reboot command in Xm side.
It waits just a bit till recreating the domain is completed,
then it measures the success or failure of the reboot of the
domain.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/shutdown.py